<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 


         -->
        
        <todo-header v-model="msg"></todo-header>
        {{msg}}
    </div>
    <script src="./todomvc-app-template-master/node_modules/vue/dist/vue.js"></script>
    <script>
        let todoHeader = {
            props: ["value"],
            template: "<div><input :value='value' @input=changeVal($event)></div>",
            methods: {
                changeVal(event) {
                    this.$emit("input", event.target.value)
                }
            }
        }

        const app = new Vue({
            el: "#app",
            data: {
                msg: "helloworld"
            },
            components: {
                todoHeader
            }
        })
    </script>
</body>
</html>